package com.yunban.project.message.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author: lijiajun
 * @date: 2025-03-07
 * @version: 1.0
 */
@Data
@Schema(description = "短信发送请求参数")
public class SmsSendReq implements Serializable {

    @Serial
    private static final long serialVersionUID = -1L;

    @Pattern(regexp = "^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式不正确")
    @NotBlank(message = "手机号不能为空")
    private String phoneNo;
}
